var device = null;
var renderer = null;

document.addEventListener("DOMContentLoaded", init, false);

function init() {
    var canvas = <HTMLCanvasElement>document.getElementById("frontBuffer");
    device = new SoftRenderer.Device(canvas);
    renderer = new SoftRenderer.Renderer(device);
    renderer.rasterizeMode = SoftRenderer.RasterizeMode.Triangle;
    // renderer.rasterizeMode = SoftRenderer.RasterizeMode.Wireframe;

    var camera = new SoftRenderer.Camera();
    camera.mode = SoftRenderer.CameraMode.Perspective;
    // camera.mode = SoftRenderer.CameraMode.Orthographic;
    // camera.size = 10.0;
    camera.mode = SoftRenderer.CameraMode.Perspective;
    camera.fov = 60.0 * (Math.PI / 180.0);
    camera.znear = 1.0;
    camera.zfar = 100.0;
    camera.position = new BABYLON.Vector3(0, 0, 6);
    camera.lookAt = new BABYLON.Vector3(0, 0, 0);
    renderer.cameras.push(camera);

    // var mesh = SoftRenderer.Mesh.Box(BABYLON.Color3.Yellow().toColor4());
    // mesh.position = new BABYLON.Vector3(0, 0, 0);
    // renderer.meshes.push(mesh);
    var meshes = SoftRenderer.Mesh.createMeshesFromJson(JSON.parse("{\"autoClear\":true,\"clearColor\":[0.0000,0.0000,0.0000],\"ambientColor\":[0.0000,0.0000,0.0000],\"gravity\":[0.0000,-9.8100,0.0000],\"cameras\":[{\"name\":\"Camera\",\"id\":\"Camera\",\"position\":[7.4811,5.3437,-6.5076],\"target\":[-0.3174,0.8953,0.3125],\"fov\":0.8576,\"minZ\":0.1000,\"maxZ\":100.0000,\"speed\":1.0000,\"inertia\":0.9000,\"checkCollisions\":false,\"applyGravity\":false,\"ellipsoid\":[0.2000,0.9000,0.2000]}],\"activeCamera\":\"Camera\",\"lights\":[{\"name\":\"Sun\",\"id\":\"Sun\",\"type\":0.0000,\"data\":[7.2858,6.0727,0.0000],\"intensity\":1.0000,\"diffuse\":[1.0000,1.0000,1.0000],\"specular\":[1.0000,1.0000,1.0000]},{\"name\":\"Lamp\",\"id\":\"Lamp\",\"type\":0.0000,\"data\":[4.0762,5.9039,1.0055],\"intensity\":1.0000,\"diffuse\":[1.0000,1.0000,1.0000],\"specular\":[1.0000,1.0000,1.0000]}],\"materials\":[],\"meshes\":[{\"name\":\"Suzanne\",\"id\":\"Suzanne\",\"position\":[0.0000,0.0000,0.0000],\"rotation\":[0.0000,0.0000,0.0000],\"scaling\":[1.0000,1.0000,1.0000],\"isVisible\":true,\"isEnabled\":true,\"checkCollisions\":false,\"billboardMode\":0,\"uvCount\":0,\"vertices\":[0.4375,0.1641,-0.7656,0.7116,-0.6793,-0.1793,0.5000,0.0938,-0.6875,0.6053,-0.5058,-0.6146,0.5625,0.2422,-0.6719,0.8018,-0.0010,-0.5976,-0.4375,0.1641,-0.7656,-0.7116,-0.6793,-0.1793,-0.4688,0.2422,-0.7578,-0.9706,-0.0152,-0.2402,-0.5625,0.2422,-0.6719,-0.8018,-0.0010,-0.5976,0.5469,0.0547,-0.5781,0.6836,-0.5473,-0.4827,0.6250,0.2422,-0.5625,0.8684,-0.0023,-0.4958,-0.5000,0.0938,-0.6875,-0.6053,-0.5058,-0.6146,-0.6250,0.2422,-0.5625,-0.8684,-0.0023,-0.4958,0.3516,0.0312,-0.7188,0.0969,-0.7510,-0.6531,0.3516,-0.0234,-0.6172,0.1095,-0.8730,-0.4753,-0.3516,0.0312,-0.7188,-0.0969,-0.7510,-0.6531,-0.5469,0.0547,-0.5781,-0.6836,-0.5473,-0.4827,0.3516,0.1328,-0.7812,0.0487,-0.9655,-0.2556,-0.3516,0.1328,-0.7812,-0.0487,-0.9655,-0.2556,0.2734,0.1641,-0.7969,-0.6412,-0.6949,-0.3256,0.2031,0.0938,-0.7422,-0.4549,-0.5407,-0.7075,-0.2734,0.1641,-0.7969,0.6412,-0.6949,-0.3256,0.1562,0.0547,-0.6484,-0.5472,-0.6394,-0.5400,-0.2031,0.0938,-0.7422,0.4549,-0.5407,-0.7075,-0.3516,-0.0234,-0.6172,-0.1095,-0.8730,-0.4753,0.1406,0.2422,-0.7422,-0.6895,-0.0002,-0.7242,0.0781,0.2422,-0.6562,-0.8119,-0.0009,-0.5837,-0.0781,0.2422,-0.6562,0.8119,-0.0009,-0.5837,-0.1406,0.2422,-0.7422,0.6895,-0.0002,-0.7242,0.2422,0.2422,-0.7969,-0.9562,-0.0212,-0.2918,-0.2422,0.2422,-0.7969,0.9562,-0.0212,-0.2918,0.2734,0.3281,-0.7969,-0.6458,0.6947,-0.3166,0.2031,0.3906,-0.7422,-0.4604,0.5277,-0.7138,-0.2734,0.3281,-0.7969,0.6458,0.6947,-0.3166,0.1562,0.4375,-0.6484,-0.5250,0.6254,-0.5771,-0.1562,0.4375,-0.6484,0.5250,0.6254,-0.5771,-0.2031,0.3906,-0.7422,0.4604,0.5277,-0.7138,0.3516,0.4531,-0.7188,0.1009,0.7396,-0.6655,0.3516,0.5156,-0.6172,0.1163,0.8435,-0.5243,-0.3516,0.5156,-0.6172,-0.1163,0.8435,-0.5243,-0.3516,0.4531,-0.7188,-0.1009,0.7396,-0.6655,0.3516,0.3594,-0.7812,0.0433,0.9713,-0.2337,-0.3516,0.3594,-0.7812,-0.0433,0.9713,-0.2337,0.4375,0.3281,-0.7656,0.7162,0.6771,-0.1692,0.5000,0.3906,-0.6875,0.6098,0.4922,-0.6211,-0.5000,0.3906,-0.6875,-0.6098,0.4922,-0.6211,-0.4375,0.3281,-0.7656,-0.7162,0.6771,-0.1692,0.5469,0.4375,-0.5781,0.6727,0.5347,-0.5114,-0.5469,0.4375,-0.5781,-0.6727,0.5347,-0.5114,0.4688,0.2422,-0.7578,0.9706,-0.0152,-0.2402,0.4453,0.3359,-0.7812,0.7179,0.6582,-0.2264,-0.4453,0.3359,-0.7812,-0.7179,0.6582,-0.2264,0.3516,0.3750,-0.8047,0.0308,0.9397,-0.3405,-0.3516,0.3750,-0.8047,-0.0308,0.9397,-0.3405,0.2656,0.3359,-0.8203,-0.6071,0.6448,-0.4644,-0.2656,0.3359,-0.8203,0.6071,0.6448,-0.4644,0.2266,0.2422,-0.8203,-0.9239,-0.0133,-0.3824,-0.2266,0.2422,-0.8203,0.9239,-0.0133,-0.3824,0.2656,0.1562,-0.8203,-0.5992,-0.6524,-0.4640,0.3516,0.1172,-0.8047,0.0303,-0.9412,-0.3365,-0.2656,0.1562,-0.8203,0.5992,-0.6524,-0.4640,0.4453,0.1562,-0.7812,0.7106,-0.6658,-0.2274,-0.3516,0.1172,-0.8047,-0.0303,-0.9412,-0.3365,0.4766,0.2422,-0.7734,0.9626,-0.0113,-0.2707,-0.4453,0.1562,-0.7812,-0.7106,-0.6658,-0.2274,0.3516,0.2422,-0.8281,0.1836,-0.0053,-0.9830,-0.4766,0.2422,-0.7734,-0.9626,-0.0113,-0.2707,-0.3516,0.2422,-0.8281,-0.1836,-0.0053,-0.9830,0.1797,-0.9688,-0.5547,0.1472,-0.9781,-0.1474,0.1641,-0.9297,-0.6328,0.1461,-0.7887,-0.5971,0.0000,-0.9453,-0.6406,0.0000,-0.7667,-0.6420,-0.1641,-0.9297,-0.6328,-0.1461,-0.7887,-0.5971,-0.1797,-0.9688,-0.5547,-0.1472,-0.9781,-0.1474,0.3281,-0.9453,-0.5234,0.6239,-0.7772,-0.0817,0.2344,-0.9141,-0.6328,0.3578,-0.6333,-0.6862,-0.2344,-0.9141,-0.6328,-0.3578,-0.6333,-0.6862,-0.3281,-0.9453,-0.5234,-0.6239,-0.7772,-0.0817,0.2656,-0.8203,-0.6641,0.5315,-0.2379,-0.8130,-0.2656,-0.8203,-0.6641,-0.5315,-0.2379,-0.8130,-0.3672,-0.8906,-0.5312,-0.9384,-0.3451,-0.0143,0.2500,-0.7031,-0.6875,0.5566,-0.0457,-0.8295,0.3672,-0.8906,-0.5312,0.9384,-0.3451,-0.0143,-0.2500,-0.7031,-0.6875,-0.5566,-0.0457,-0.8295,-0.3516,-0.6953,-0.5703,-0.9782,0.0801,-0.1917,0.2109,-0.4453,-0.7109,0.5704,0.0751,-0.8179,0.3516,-0.6953,-0.5703,0.9782,0.0801,-0.1917,-0.2109,-0.4453,-0.7109,-0.5704,0.0751,-0.8179,-0.3125,-0.4375,-0.5703,-0.9636,0.2327,-0.1312,0.4375,-0.1406,-0.5312,0.3383,-0.9407,0.0250,0.3984,-0.0469,-0.6719,0.3974,-0.5033,-0.7673,0.1250,-0.1016,-0.8125,-0.1055,-0.2792,-0.9544,-0.4375,-0.1406,-0.5312,-0.3383,-0.9407,0.0250,-0.2031,-0.1875,-0.5625,-0.9361,-0.3368,-0.1016,-0.1250,-0.1016,-0.8125,0.1055,-0.2792,-0.9544,0.6328,-0.0391,-0.5391,0.5811,-0.7812,-0.2279,0.6172,0.0547,-0.6250,0.4827,-0.3733,-0.7922,-0.6172,0.0547,-0.6250,-0.4827,-0.3733,-0.7922,-0.6328,-0.0391,-0.5391,-0.5811,-0.7812,-0.2279,0.8281,0.1484,-0.4453,0.9118,-0.3861,0.1399,0.7266,0.2031,-0.6016,0.6250,-0.3157,-0.7139,-0.8281,0.1484,-0.4453,-0.9118,-0.3861,0.1399,0.8594,0.4297,-0.5938,0.8837,0.3928,-0.2543,0.7422,0.3750,-0.6562,0.5250,-0.4377,-0.7299,-0.7422,0.3750,-0.6562,-0.5250,-0.4377,-0.7299,-0.8594,0.4297,-0.5938,-0.8837,0.3928,-0.2543,0.7109,0.4844,-0.6250,0.4349,0.8866,-0.1574,0.6875,0.4141,-0.7266,0.3451,-0.0681,-0.9361,-0.6875,0.4141,-0.7266,-0.3451,-0.0681,-0.9361,-0.7109,0.4844,-0.6250,-0.4349,0.8866,-0.1574,0.4922,0.6016,-0.6875,0.6023,0.7813,-0.1636,0.4375,0.5469,-0.7969,0.2902,-0.0406,-0.9561,-0.4375,0.5469,-0.7969,-0.2902,-0.0406,-0.9561,-0.4922,0.6016,-0.6875,-0.6023,0.7813,-0.1636,0.3203,0.7578,-0.7344,0.2189,0.9619,-0.1633,0.3125,0.6406,-0.8359,0.2614,0.2065,-0.9429,-0.3203,0.7578,-0.7344,-0.2189,0.9619,-0.1633,0.1562,0.7188,-0.7578,-0.5952,0.7791,-0.1968,0.2031,0.6172,-0.8516,-0.1306,0.1578,-0.9788,-0.2031,0.6172,-0.8516,0.1306,0.1578,-0.9788,-0.1562,0.7188,-0.7578,0.5952,0.7791,-0.1968,0.0625,0.4922,-0.7500,-0.8108,0.5623,-0.1623,0.1016,0.4297,-0.8438,-0.0231,-0.1757,-0.9842,-0.1016,0.4297,-0.8438,0.0231,-0.1757,-0.9842,-0.0625,0.4922,-0.7500,0.8108,0.5623,-0.1623,0.0000,0.4297,-0.7422,0.0000,0.9341,-0.3570,0.0000,0.3516,-0.8203,0.0000,-0.0301,-0.9995,0.1641,0.4141,-0.7734,0.2787,-0.2145,-0.9361,0.2500,0.4688,-0.7578,0.2229,-0.1113,-0.9684,-0.2500,0.4688,-0.7578,-0.2229,-0.1113,-0.9684,-0.1641,0.4141,-0.7734,-0.2787,-0.2145,-0.9361,0.3281,0.4766,-0.7422,0.1383,-0.1042,-0.9849,-0.3281,0.4766,-0.7422,-0.1383,-0.1042,-0.9849,0.4297,0.4375,-0.7188,0.2919,0.1063,-0.9505,-0.3125,0.6406,-0.8359,-0.2614,0.2065,-0.9429,-0.4297,0.4375,-0.7188,-0.2919,0.1063,-0.9505,0.6016,0.3750,-0.6641,0.0815,-0.2883,-0.9540,-0.6016,0.3750,-0.6641,-0.0815,-0.2883,-0.9540,0.6406,0.2969,-0.6484,0.2040,-0.1255,-0.9709,-0.6406,0.2969,-0.6484,-0.2040,-0.1255,-0.9709,0.6250,0.1875,-0.6484,0.4552,-0.2374,-0.8581,-0.7266,0.2031,-0.6016,-0.6250,-0.3157,-0.7139,-0.6250,0.1875,-0.6484,-0.4552,-0.2374,-0.8581,0.4922,0.0625,-0.6719,0.4244,-0.3754,-0.8239,-0.4922,0.0625,-0.6719,-0.4244,-0.3754,-0.8239,0.3750,0.0156,-0.7031,0.1678,-0.5036,-0.8475,-0.3984,-0.0469,-0.6719,-0.3974,-0.5033,-0.7673,-0.3750,0.0156,-0.7031,-0.1678,-0.5036,-0.8475,0.2031,0.0938,-0.7422,0.0241,-0.3141,-0.9491,-0.2031,0.0938,-0.7422,-0.0241,-0.3141,-0.9491,0.1641,0.1406,-0.7500,-0.2827,-0.1463,-0.9480,0.0000,0.0469,-0.7266,0.0000,0.0232,-0.9997,-0.1641,0.1406,-0.7500,0.2827,-0.1463,-0.9480,0.0000,0.2109,-0.7656,0.0000,-0.2984,-0.9544,0.1328,0.2109,-0.7578,-0.1581,-0.1863,-0.9697,-0.1250,0.3047,-0.7656,-0.0886,-0.0806,-0.9928,-0.1328,0.2109,-0.7578,0.1581,-0.1863,-0.9697,0.0000,-0.8906,-0.6875,0.0000,-0.4116,-0.9113,-0.0625,-0.8828,-0.6953,0.0709,-0.3870,-0.9193,0.0625,-0.8828,-0.6953,-0.0709,-0.3870,-0.9193,-0.1172,-0.8359,-0.7109,-0.1729,-0.2828,-0.9434,0.1094,-0.7188,-0.7344,0.1570,-0.1325,-0.9786,0.1172,-0.8359,-0.7109,0.1729,-0.2828,-0.9434,-0.1094,-0.7188,-0.7344,-0.1570,-0.1325,-0.9786,0.0781,-0.4453,-0.7500,0.1362,-0.0040,-0.9907,0.1172,-0.6875,-0.7344,0.1929,-0.0464,-0.9801,-0.0781,-0.4453,-0.7500,-0.1362,-0.0040,-0.9907,-0.1172,-0.6875,-0.7344,-0.1929,-0.0464,-0.9801,0.0859,-0.2891,-0.7422,0.4329,-0.4643,-0.7726,0.0000,-0.3281,-0.7422,0.0000,-0.4580,-0.8889,0.0000,-0.4453,-0.7500,0.0000,-0.0049,-1.0000,-0.0859,-0.2891,-0.7422,-0.4329,-0.4643,-0.7726,0.0000,-0.7656,-0.7344,0.0000,-0.6101,-0.7923,0.1328,-0.2266,-0.7969,0.9460,-0.1858,-0.2656,0.0938,-0.2734,-0.7812,0.5150,-0.7446,-0.4246,-0.1328,-0.2266,-0.7969,-0.9460,-0.1858,-0.2656,-0.1250,-0.2266,-0.7500,-0.8211,-0.2931,-0.4896,0.1094,-0.1328,-0.7812,0.6177,0.7781,-0.1137,0.1250,-0.2266,-0.7500,0.8211,-0.2931,-0.4896,-0.1094,-0.1328,-0.7812,-0.6177,0.7781,-0.1137,-0.1016,-0.1484,-0.7422,0.4476,0.6063,-0.6572,0.0000,-0.1406,-0.7422,0.0000,0.3991,-0.9169,0.0391,-0.1250,-0.7812,-0.2925,0.9439,-0.1528,-0.0391,-0.1250,-0.7812,0.2925,0.9439,-0.1528,0.0000,-0.1953,-0.7500,0.0000,0.8380,-0.5456,0.0000,-0.1875,-0.7969,0.0000,0.9723,-0.2335,-0.0938,-0.2734,-0.7812,-0.5150,-0.7446,-0.4246,0.0000,-0.3203,-0.7812,0.0000,-0.8708,-0.4916,0.0781,-0.2500,-0.8047,0.2690,-0.7719,-0.5760,-0.0781,-0.2500,-0.8047,-0.2690,-0.7719,-0.5760,0.0000,-0.2031,-0.8281,0.0000,0.1762,-0.9843,0.0469,-0.1484,-0.8125,-0.1454,0.5910,-0.7935,0.0938,-0.1562,-0.8125,0.3647,0.4640,-0.8073,-0.0469,-0.1484,-0.8125,0.1454,0.5910,-0.7935,0.1094,-0.2266,-0.8281,0.4676,-0.2152,-0.8573,-0.1094,-0.2266,-0.8281,-0.4676,-0.2152,-0.8573,-0.0938,-0.1562,-0.8125,-0.3647,0.4640,-0.8073,0.0000,-0.2891,-0.8047,0.0000,-0.5222,-0.8528,0.1016,-0.1484,-0.7422,-0.4476,0.6063,-0.6572,0.1641,-0.2422,-0.7109,0.8366,0.0461,-0.5458,0.1797,-0.3125,-0.7109,0.6554,0.1339,-0.7432,-0.1797,-0.3125,-0.7109,-0.6554,0.1339,-0.7432,0.3125,-0.4375,-0.5703,0.9636,0.2327,-0.1312,0.2578,-0.3125,-0.5547,0.9228,0.3715,-0.1019,-0.2578,-0.3125,-0.5547,-0.9228,0.3715,-0.1019,0.2344,-0.2500,-0.5547,0.9289,0.3610,-0.0820,-0.1641,-0.2422,-0.7109,-0.8366,0.0461,-0.5458,-0.2344,-0.2500,-0.5547,-0.9289,0.3610,-0.0820,0.0000,-0.7734,-0.7188,0.0000,-0.9522,-0.3053,0.0938,-0.7422,-0.7266,-0.2106,-0.4668,-0.8589,0.0938,-0.8203,-0.7109,-0.6332,-0.0002,-0.7740,-0.0938,-0.8203,-0.7109,0.6332,-0.0002,-0.7740,0.0469,-0.8672,-0.6875,-0.3669,0.6037,-0.7077,-0.0469,-0.8672,-0.6875,0.3669,0.6037,-0.7077,0.0000,-0.8750,-0.6875,0.0000,0.5923,-0.8057,0.0469,-0.8516,-0.6328,-0.3190,0.4692,-0.8234,-0.0469,-0.8516,-0.6328,0.3190,0.4692,-0.8234,0.0938,-0.8125,-0.6406,-0.6715,0.1450,-0.7267,0.0938,-0.7500,-0.6641,-0.5168,-0.7037,-0.4875,-0.0938,-0.7422,-0.7266,0.2106,-0.4668,-0.8589,-0.0938,-0.8125,-0.6406,0.6715,0.1450,-0.7267,0.0000,-0.7812,-0.6562,0.0000,-0.6937,-0.7202,0.0000,-0.8594,-0.6328,0.0000,0.5274,-0.8496,-0.0938,-0.7500,-0.6641,0.5168,-0.7037,-0.4875,0.1875,0.1562,-0.7734,-0.0440,0.0053,-0.9990,0.1719,0.2188,-0.7812,0.1187,-0.0552,-0.9914,-0.1719,0.2188,-0.7812,-0.1187,-0.0552,-0.9914,0.1797,0.2969,-0.7812,0.2557,-0.1379,-0.9568,-0.1797,0.2969,-0.7812,-0.2557,-0.1379,-0.9568,0.1250,0.3047,-0.7656,0.0886,-0.0806,-0.9928,0.2266,0.1094,-0.7812,-0.0309,-0.1861,-0.9820,-0.2266,0.1094,-0.7812,0.0309,-0.1861,-0.9820,0.3750,0.0625,-0.7422,0.2495,-0.1711,-0.9531,0.4766,0.1016,-0.7188,0.2635,-0.0288,-0.9642,-0.3750,0.0625,-0.7422,-0.2495,-0.1711,-0.9531,0.5781,0.1953,-0.6797,0.2815,-0.0213,-0.9593,-0.4766,0.1016,-0.7188,-0.2635,-0.0288,-0.9642,0.5859,0.2891,-0.6875,0.1681,-0.0795,-0.9825,-0.5781,0.1953,-0.6797,-0.2815,-0.0213,-0.9593,0.5625,0.3516,-0.6953,0.3101,-0.1032,-0.9451,-0.5625,0.3516,-0.6953,-0.3101,-0.1032,-0.9451,0.4219,0.3984,-0.7734,0.1961,-0.1959,-0.9608,-0.4219,0.3984,-0.7734,-0.1961,-0.1959,-0.9608,0.3359,0.4297,-0.7578,0.0296,0.0585,-0.9978,0.2734,0.4219,-0.7734,0.1631,0.0672,-0.9843,-0.3359,0.4297,-0.7578,-0.0296,0.0585,-0.9978,0.2109,0.3750,-0.7812,0.1989,-0.0879,-0.9760,-0.2734,0.4219,-0.7734,-0.1631,0.0672,-0.9843,0.2344,0.3594,-0.7578,0.5123,-0.3724,-0.7738,-0.2344,0.3594,-0.7578,-0.5123,-0.3724,-0.7738,-0.2109,0.3750,-0.7812,-0.1989,-0.0879,-0.9760,0.2812,0.3984,-0.7656,0.1867,-0.2541,-0.9490,0.3359,0.4062,-0.7500,-0.0136,-0.3680,-0.9297,-0.3359,0.4062,-0.7500,0.0136,-0.3680,-0.9297,0.4141,0.3906,-0.7500,-0.1395,-0.9154,-0.3776,-0.4141,0.3906,-0.7500,0.1395,-0.9154,-0.3776,0.5312,0.3359,-0.6797,-0.1346,-0.5529,-0.8222,0.5547,0.2812,-0.6719,-0.3840,-0.1351,-0.9134,-0.5859,0.2891,-0.6875,-0.1681,-0.0795,-0.9825,-0.5547,0.2812,-0.6719,0.3840,-0.1351,-0.9134,0.5469,0.2109,-0.6719,-0.1477,0.1899,-0.9706,0.4609,0.1172,-0.7031,-0.1338,0.5986,-0.7898,-0.4609,0.1172,-0.7031,0.1338,0.5986,-0.7898,0.3750,0.0859,-0.7266,0.1833,0.5523,-0.8132,-0.3750,0.0859,-0.7266,-0.1833,0.5523,-0.8132,0.2422,0.1250,-0.7578,0.4197,0.6008,-0.6803,0.2031,0.1719,-0.7500,0.6920,0.2958,-0.6585,-0.1875,0.1562,-0.7734,0.0440,0.0053,-0.9990,-0.2031,0.1719,-0.7500,-0.6920,0.2958,-0.6585,0.1953,0.2969,-0.7578,0.7938,-0.2865,-0.5364,0.1953,0.2266,-0.7500,0.7987,0.0194,-0.6014,-0.1953,0.2969,-0.7578,-0.7938,-0.2865,-0.5364,-0.1953,0.2266,-0.7500,-0.7987,0.0194,-0.6014,0.1094,0.4609,-0.6094,-0.5624,0.7659,-0.3115,0.0000,0.4062,-0.6016,0.0000,0.8869,-0.4620,0.1953,0.6641,-0.6172,-0.4675,0.5228,0.7128,-0.1094,0.4609,-0.6094,0.5624,0.7659,-0.3115,0.3359,0.6875,-0.5938,0.1102,0.6507,0.7513,-0.3359,0.6875,-0.5938,-0.1102,0.6507,0.7513,0.4844,0.5547,-0.5547,0.2746,0.8880,0.3688,-0.4844,0.5547,-0.5547,-0.2746,0.8880,0.3688,0.6797,0.4531,-0.4922,0.3626,0.9120,0.1919,-0.6797,0.4531,-0.4922,-0.3626,0.9120,0.1919,0.7969,0.4062,-0.4609,0.7391,0.6070,0.2920,0.7734,0.1641,-0.3750,0.8565,-0.4709,0.2113,-0.7734,0.1641,-0.3750,-0.8565,-0.4709,0.2113,0.6016,0.0000,-0.4141,0.6261,-0.7782,0.0493,0.4375,-0.0938,-0.4688,0.3676,-0.9095,0.1939,-0.6016,0.0000,-0.4141,-0.6261,-0.7782,0.0493,0.0000,-0.5703,-0.3203,0.0000,-0.3267,0.9451,0.0000,-0.4844,-0.2812,0.0000,-0.7109,0.7033,0.1797,-0.4141,-0.2578,0.6095,-0.7764,0.1601,-0.1797,-0.4141,-0.2578,-0.6095,-0.7764,0.1601,0.0000,-0.8047,-0.3438,0.0000,-0.3569,0.9341,0.1250,-0.5391,-0.3594,0.4085,-0.2920,0.8648,-0.1250,-0.5391,-0.3594,-0.4085,-0.2920,0.8648,0.0000,-0.9766,-0.4609,0.0000,-0.8671,0.4982,0.1406,-0.7578,-0.3672,0.1722,-0.1999,0.9645,-0.1406,-0.7578,-0.3672,-0.1722,-0.1999,0.9645,0.0000,-0.9844,-0.5781,0.0000,-0.9712,-0.2381,0.1641,-0.9453,-0.4375,0.0397,-0.7495,0.6608,-0.1641,-0.9453,-0.4375,-0.0397,-0.7495,0.6608,0.3281,-0.9141,-0.3984,0.6305,-0.4078,0.6604,-0.3281,-0.9141,-0.3984,-0.6305,-0.4078,0.6604,0.2891,-0.7109,-0.3828,0.6132,0.0410,0.7888,-0.2891,-0.7109,-0.3828,-0.6132,0.0410,0.7888,0.2500,-0.5000,-0.3906,0.6249,0.1224,0.7710,-0.2500,-0.5000,-0.3906,-0.6249,0.1224,0.7710,0.2344,-0.3516,-0.4062,0.9439,0.1056,0.3129,-0.2344,-0.3516,-0.4062,-0.9439,0.1056,0.3129,0.2188,-0.2812,-0.4297,0.9982,0.0183,-0.0565,0.2109,-0.2266,-0.4688,0.9562,-0.1362,-0.2589,-0.2109,-0.2266,-0.4688,-0.9562,-0.1362,-0.2589,-0.2188,-0.2812,-0.4297,-0.9982,0.0183,-0.0565,0.2031,-0.1875,-0.5625,0.9361,-0.3368,-0.1016,0.2031,-0.1719,-0.5000,0.7526,-0.5911,-0.2901,-0.4375,-0.0938,-0.4688,-0.3676,-0.9095,0.1939,-0.2031,-0.1719,-0.5000,-0.7526,-0.5911,-0.2901,0.0000,0.0703,0.8281,0.0000,-0.2643,0.9644,0.3359,0.0547,0.6641,0.4404,-0.3208,0.8385,0.3438,-0.1484,0.5391,0.5264,-0.6594,0.5367,-0.3438,-0.1484,0.5391,-0.5264,-0.6594,0.5367,-0.3359,0.0547,0.6641,-0.4404,-0.3208,0.8385,0.0000,-0.1953,0.6719,0.0000,-0.6956,0.7184,0.2969,-0.3125,0.2656,0.5017,-0.8333,0.2320,-0.2969,-0.3125,0.2656,-0.5017,-0.8333,0.2320,0.2109,-0.3906,-0.1641,0.5747,-0.8183,-0.0009,0.0000,-0.4609,-0.1875,0.0000,-0.9815,0.1915,0.0000,-0.3828,0.3516,0.0000,-0.9366,0.3504,-0.2109,-0.3906,-0.1641,-0.5747,-0.8183,-0.0009,0.7344,-0.0469,-0.0703,0.7504,-0.6502,-0.1191,0.8516,0.2344,-0.0547,0.9855,-0.1614,-0.0522,-0.8516,0.2344,-0.0547,-0.9855,-0.1614,-0.0522,0.0000,0.5625,0.8516,0.0000,0.3148,0.9491,0.4609,0.4375,0.7031,0.5126,0.1686,0.8419,-0.4609,0.4375,0.7031,-0.5126,0.1686,0.8419,0.0000,0.8984,-0.2891,0.0000,0.8477,-0.5304,0.4531,0.8516,-0.2344,0.4798,0.7182,-0.5040,0.4531,0.9297,0.0703,0.4288,0.9025,-0.0398,-0.4531,0.9297,0.0703,-0.4288,0.9025,-0.0398,-0.4531,0.8516,-0.2344,-0.4798,0.7182,-0.5040,0.4531,0.8672,0.3828,0.4265,0.7997,0.4225,0.0000,0.8984,0.5469,0.0000,0.8465,0.5324,0.0000,0.9844,0.0781,0.0000,0.9998,-0.0217,-0.4531,0.8672,0.3828,-0.4265,0.7997,0.4225,0.7266,0.4062,-0.3359,0.6245,0.7803,0.0332,0.6328,0.4531,-0.2812,0.3543,0.8187,-0.4519,-0.7969,0.4062,-0.4609,-0.7391,0.6070,0.2920,-0.6328,0.4531,-0.2812,-0.3543,0.8187,-0.4519,0.7969,0.5625,-0.1250,0.7908,0.4856,-0.3726,0.6406,0.7031,-0.0547,0.6550,0.6851,-0.3186,-0.7266,0.4062,-0.3359,-0.6245,0.7803,0.0332,-0.6406,0.7031,-0.0547,-0.6550,0.6851,-0.3186,0.7969,0.6172,0.1172,0.8678,0.4968,-0.0030,0.6406,0.7500,0.1953,0.6595,0.7481,0.0733,-0.7969,0.5625,-0.1250,-0.7908,0.4856,-0.3726,-0.6406,0.7500,0.1953,-0.6595,0.7481,0.0733,0.7969,0.5391,0.3594,0.8935,0.2545,0.3698,0.6406,0.6797,0.4453,0.4986,0.5502,0.6698,-0.7969,0.6172,0.1172,-0.8678,0.4968,-0.0030,-0.6406,0.6797,0.4453,-0.4986,0.5502,0.6698,0.7734,0.2656,0.4375,0.7830,-0.1242,0.6095,0.6172,0.3281,0.5859,0.6099,-0.0221,0.7921,-0.6172,0.3281,0.5859,-0.6099,-0.0221,0.7921,-0.7734,0.2656,0.4375,-0.7830,-0.1242,0.6095,0.4609,0.5234,-0.4297,0.3645,0.9029,-0.2280,-0.4609,0.5234,-0.4297,-0.3645,0.9029,-0.2280,0.0000,0.5703,-0.5703,0.0000,0.5172,-0.8558,-0.1953,0.6641,-0.6172,0.4675,0.5228,0.7128,0.8594,0.3203,0.0469,0.9969,0.0355,0.0698,-0.8594,0.3203,0.0469,-0.9969,0.0355,0.0698,0.8203,0.3281,0.2031,0.9173,0.2927,-0.2700,-0.8203,0.3281,0.2031,-0.9173,0.2927,-0.2700,-0.7969,0.5391,0.3594,-0.8935,0.2545,0.3698,0.4297,-0.1953,0.2109,0.5968,-0.7859,0.1618,-0.4297,-0.1953,0.2109,-0.5968,-0.7859,0.1618,0.4062,-0.1719,-0.1484,0.5673,-0.8083,-0.1575,-0.4062,-0.1719,-0.1484,-0.5673,-0.8083,-0.1575,-0.7344,-0.0469,-0.0703,-0.7504,-0.6502,-0.1191,0.6406,-0.0078,0.4297,0.3110,-0.6426,0.7002,0.4844,0.0234,0.5469,0.5421,-0.4993,0.6759,-0.4844,0.0234,0.5469,-0.5421,-0.4993,0.6759,-0.6406,-0.0078,0.4297,-0.3110,-0.6426,0.7002,0.5938,-0.1250,0.1641,0.3335,-0.9389,0.0852,-0.5938,-0.1250,0.1641,-0.3335,-0.9389,0.0852,1.0234,0.4766,0.3125,-0.0380,0.8871,-0.4600,0.8906,0.4062,0.2344,-0.3296,0.7485,-0.5754,0.9219,0.3594,0.2188,0.3919,-0.0231,-0.9197,-0.9219,0.3594,0.2188,-0.3919,-0.0231,-0.9197,-0.8906,0.4062,0.2344,0.3296,0.7485,-0.5754,-1.0234,0.4766,0.3125,0.0380,0.8871,-0.4600,1.0156,0.4141,0.2891,0.5720,-0.1149,-0.8122,1.1875,0.4375,0.3906,0.3911,-0.1214,-0.9123,1.2344,0.5078,0.4219,0.3659,0.8711,-0.3276,-1.0156,0.4141,0.2891,-0.5720,-0.1149,-0.8122,-1.2344,0.5078,0.4219,-0.3659,0.8711,-0.3276,1.2656,0.2891,0.4062,-0.1546,-0.0777,-0.9849,-1.2656,0.2891,0.4062,0.1546,-0.0777,-0.9849,-1.1875,0.4375,0.3906,-0.3911,-0.1214,-0.9123,1.3516,0.3203,0.4219,0.7626,0.1751,-0.6227,1.2109,0.0781,0.4062,-0.0458,0.3612,-0.9313,-1.2109,0.0781,0.4062,0.0458,0.3612,-0.9313,-1.3516,0.3203,0.4219,-0.7626,0.1751,-0.6227,1.2812,0.0547,0.4297,0.6804,-0.4264,-0.5960,1.0312,-0.0391,0.3047,0.4684,0.3144,-0.8256,-1.0312,-0.0391,0.3047,-0.4684,0.3144,-0.8256,-1.2812,0.0547,0.4297,-0.6804,-0.4264,-0.5960,0.8281,-0.0703,0.1328,0.3593,0.2301,-0.9044,0.7734,-0.1406,0.1250,-0.0214,-0.6833,-0.7298,-1.0391,-0.1016,0.3281,-0.4613,-0.7982,-0.3875,-0.7734,-0.1406,0.1250,0.0214,-0.6833,-0.7298,1.0391,0.0000,0.3672,-0.2122,0.9517,-0.2218,0.8828,-0.0234,0.2109,0.3336,0.8094,-0.4833,-1.0391,0.0000,0.3672,0.2122,0.9517,-0.2218,-0.8281,-0.0703,0.1328,-0.3593,0.2301,-0.9044,1.1875,0.0938,0.4453,-0.8095,0.5847,0.0524,-1.1875,0.0938,0.4453,0.8095,0.5847,0.0524,1.2344,0.2500,0.4453,-0.9931,-0.0552,-0.1035,-1.2344,0.2500,0.4453,0.9931,-0.0552,-0.1035,1.1719,0.3594,0.4375,-0.1276,-0.7585,-0.6391,-1.1719,0.3594,0.4375,0.1276,-0.7585,-0.6391,1.0234,0.3438,0.3594,0.5585,-0.6545,-0.5096,-1.0234,0.3438,0.3594,-0.5585,-0.6545,-0.5096,0.9453,0.3047,0.2891,0.7274,-0.5127,-0.4560,0.7188,-0.0234,0.1719,0.7341,0.1414,-0.6642,-0.7188,-0.0234,0.1719,-0.7341,0.1414,-0.6642,0.7266,0.0000,0.0703,0.9710,-0.2035,0.1250,0.8438,0.2891,0.2109,0.3530,-0.2070,-0.9124,-0.8438,0.2891,0.2109,-0.3530,-0.2070,-0.9124,0.8125,-0.0156,0.2734,0.8046,0.4305,-0.4089,-0.8828,-0.0234,0.2109,-0.3336,0.8094,-0.4833,0.8438,0.0156,0.2734,0.8754,-0.1836,-0.4472,0.7188,0.0391,0.1875,0.9344,-0.0891,-0.3448,-0.7188,0.0391,0.1875,-0.9344,-0.0891,-0.3448,-0.8438,0.0156,0.2734,-0.8754,-0.1836,-0.4472,0.8203,0.0859,0.2734,0.5701,0.7361,-0.3649,-0.7578,0.0938,0.2734,-0.9543,0.1026,-0.2806,-0.8203,0.0859,0.2734,-0.5701,0.7361,-0.3649,0.8359,0.1719,0.2734,0.7465,-0.5659,-0.3498,0.7969,0.2031,0.2109,0.8676,-0.3638,-0.3389,-0.7969,0.2031,0.2109,-0.8676,-0.3638,-0.3389,-0.8359,0.1719,0.2734,-0.7465,-0.5659,-0.3498,0.8906,0.2422,0.2656,0.6655,-0.5609,-0.4923,-0.8906,0.2422,0.2656,-0.6655,-0.5609,-0.4923,-0.7266,0.0000,0.0703,-0.9710,-0.2035,0.1250,0.8906,0.2344,0.3203,0.6639,-0.4673,-0.5838,0.9531,0.2891,0.3438,0.6215,-0.4422,-0.6466,-0.9453,0.3047,0.2891,-0.7274,-0.5127,-0.4560,-0.9531,0.2891,0.3438,-0.6215,-0.4422,-0.6466,0.8438,0.1719,0.3203,0.5176,-0.4523,-0.7263,-0.8438,0.1719,0.3203,-0.5176,-0.4523,-0.7263,0.7578,0.0938,0.2734,0.9543,0.1026,-0.2806,0.7656,0.0938,0.3203,0.7675,0.2336,-0.5969,0.8281,0.0781,0.3203,0.4243,0.4571,-0.7816,-0.8281,0.0781,0.3203,-0.4243,0.4571,-0.7816,0.8516,0.0156,0.3203,0.6593,-0.3517,-0.6645,-0.8516,0.0156,0.3203,-0.6593,-0.3517,-0.6645,0.8125,-0.0156,0.3203,0.7009,0.2968,-0.6485,-0.8125,-0.0156,0.2734,-0.8046,0.4305,-0.4089,0.8828,-0.0156,0.2656,-0.0658,0.9424,-0.3280,-0.8125,-0.0156,0.3203,-0.7009,0.2968,-0.6485,1.0391,0.3281,0.4141,0.5205,-0.2498,-0.8165,-1.0391,0.3281,0.4141,-0.5205,-0.2498,-0.8165,1.1875,0.3438,0.4844,-0.2083,-0.5397,-0.8156,-1.1875,0.3438,0.4844,0.2083,-0.5397,-0.8156,1.2578,0.2422,0.4922,-0.7606,-0.0328,-0.6483,-1.2578,0.2422,0.4922,0.7606,-0.0328,-0.6483,1.2109,0.0859,0.4844,-0.6009,0.4917,-0.6301,-1.2109,0.0859,0.4844,0.6009,0.4917,-0.6301,1.0469,0.0000,0.4219,0.1425,0.6954,-0.7043,-1.0469,0.0000,0.4219,-0.1425,0.6954,-0.7043,0.9375,0.0625,0.3359,-0.2016,0.5337,-0.8213,-0.9375,0.0625,0.3359,0.2016,0.5337,-0.8213,0.8906,0.1094,0.3281,0.1933,-0.0056,-0.9811,1.0000,0.1250,0.3672,0.4338,-0.0353,-0.9003,-1.0000,0.1250,0.3672,-0.4338,-0.0353,-0.9003,-0.8906,0.1094,0.3281,-0.1933,-0.0056,-0.9811,1.0547,0.1875,0.3828,0.3254,-0.1152,-0.9385,1.0156,0.2344,0.3750,0.2996,-0.0545,-0.9525,-0.9609,0.1719,0.3516,-0.3723,-0.0194,-0.9279,-1.0156,0.2344,0.3750,-0.2996,-0.0545,-0.9525,1.1094,0.2109,0.3906,0.4628,-0.3818,-0.8000,-1.1094,0.2109,0.3906,-0.4628,-0.3818,-0.8000,-1.0547,0.1875,0.3828,-0.3254,-0.1152,-0.9385,1.0859,0.2734,0.3906,0.3586,0.3081,-0.8812,-1.0859,0.2734,0.3906,-0.3586,0.3081,-0.8812,0.9609,0.1719,0.3516,0.3723,-0.0194,-0.9279,-0.8906,0.2344,0.3203,-0.6639,-0.4673,-0.5838,-0.7656,0.0938,0.3203,-0.7675,0.2336,-0.5969,-0.8828,-0.0156,0.2656,0.0658,0.9424,-0.3280,0.7891,-0.1250,0.3281,-0.2310,-0.8419,0.4877,1.0391,-0.0859,0.4922,-0.0647,-0.6826,0.7278,-1.0391,-0.0859,0.4922,0.0647,-0.6826,0.7278,1.0391,-0.1016,0.3281,0.4613,-0.7982,-0.3875,1.3125,0.0547,0.5312,0.6596,-0.4855,0.5738,-1.3125,0.0547,0.5312,-0.6596,-0.4855,0.5738,1.3672,0.2969,0.5000,0.9240,0.0860,0.3726,-1.3672,0.2969,0.5000,-0.9240,0.0860,0.3726,1.2500,0.4688,0.5469,0.2796,0.6208,0.7324,-1.2500,0.4688,0.5469,-0.2796,0.6208,0.7324,1.0234,0.4375,0.4844,-0.4278,0.5755,0.6970,-1.0234,0.4375,0.4844,0.4278,0.5755,0.6970,-0.7891,-0.1250,0.3281,0.2310,-0.8419,0.4877,0.8594,0.3828,0.3828,-0.6611,0.5885,0.4653,-0.8594,0.3828,0.3828,0.6611,0.5885,0.4653,-0.1562,0.0547,-0.6484,0.5472,-0.6394,-0.5400,0.0000,-0.6797,-0.7344,0.0000,-0.0347,-0.9994,-0.2812,0.3984,-0.7656,-0.1867,-0.2541,-0.9490,-0.5312,0.3359,-0.6797,0.1346,-0.5529,-0.8222,-0.5469,0.2109,-0.6719,0.1477,0.1899,-0.9706,-0.2422,0.1250,-0.7578,-0.4197,0.6008,-0.6803],\"indices\":[0,1,2,3,4,5,1,6,7,8,5,9,10,11,6,12,8,13,14,10,1,15,3,8,16,17,10,18,15,12,17,19,11,20,12,21,17,22,23,24,25,20,26,22,17,27,18,20,28,29,22,30,27,25,22,29,31,32,33,25,29,34,35,36,37,33,28,38,34,37,39,30,38,40,41,42,43,39,34,41,44,45,42,37,41,2,7,9,5,42,40,46,2,5,4,43,46,40,47,48,43,4,40,38,49,50,39,43,38,28,51,52,30,39,28,26,53,54,27,30,16,55,53,18,27,54,14,56,55,15,18,57,0,58,56,3,15,59,46,60,58,4,3,61,62,58,60,63,61,64,56,58,62,64,61,59,62,55,56,59,57,64,62,53,55,57,54,64,62,51,53,54,52,64,62,49,51,52,50,64,62,47,49,50,48,64,62,60,47,48,63,64,65,66,67,67,68,69,70,71,66,68,72,73,74,71,70,75,76,73,77,74,78,79,80,76,81,77,82,83,84,80,85,86,87,88,89,90,85,91,92,93,94,88,95,96,92,97,94,93,95,98,99,100,101,97,98,102,103,104,105,101,102,106,107,108,109,105,110,111,107,112,109,108,110,113,114,115,116,112,113,117,118,119,120,116,117,121,122,122,121,120,123,124,114,115,125,126,127,111,114,128,125,115,129,107,111,130,108,131,132,103,107,108,104,133,134,99,103,104,100,135,136,96,99,100,137,138,139,92,96,137,93,140,141,86,92,93,142,143,144,87,86,142,90,145,146,147,87,148,145,90,123,118,122,122,119,126,122,149,150,122,151,152,147,146,150,152,148,147,153,67,66,153,154,68,155,66,71,154,156,72,157,158,71,72,156,159,160,161,77,162,83,79,74,77,161,75,159,163,164,165,166,166,165,167,161,160,166,166,162,163,168,157,161,163,159,168,169,170,164,171,172,167,173,169,174,175,176,172,177,178,173,175,179,177,180,181,178,179,181,180,165,164,170,182,167,165,183,170,184,185,182,183,186,187,178,186,181,179,187,188,173,189,179,175,173,188,190,191,192,175,190,184,170,191,171,182,186,190,188,192,191,186,193,184,190,193,186,191,194,87,147,176,177,147,174,195,87,172,176,90,174,164,196,197,167,172,164,160,81,83,162,167,198,199,196,197,200,84,199,201,195,202,203,200,87,195,201,90,89,203,157,168,204,204,168,159,157,205,206,159,156,207,158,206,208,156,154,209,155,208,210,154,153,210,210,208,211,212,209,210,206,213,211,207,209,212,205,214,213,215,207,216,205,204,217,217,204,215,218,211,214,218,217,219,214,211,213,216,212,219,146,220,221,148,152,222,150,221,223,152,151,224,123,225,223,224,151,126,146,144,226,227,145,148,141,228,226,143,145,227,139,229,228,140,143,230,136,231,229,138,140,232,134,233,231,135,138,234,134,132,235,236,133,135,132,129,237,238,131,133,127,239,237,128,131,238,124,240,239,125,128,241,123,242,240,126,125,243,240,242,244,245,246,243,240,247,248,243,241,249,237,239,248,249,241,238,235,237,250,251,238,236,235,252,253,236,254,255,231,233,253,255,254,234,231,256,257,234,232,258,228,229,257,258,232,230,226,228,259,260,230,227,226,261,262,227,263,264,223,265,244,224,246,245,221,266,265,222,224,267,220,262,266,263,222,268,117,269,270,120,121,270,113,271,269,116,120,272,113,110,273,274,112,116,110,106,275,276,109,112,106,102,277,278,105,109,98,279,277,101,105,278,98,95,280,281,97,101,91,282,280,94,97,281,85,283,282,88,94,284,285,286,287,288,286,285,289,285,290,291,285,289,292,289,293,294,289,292,295,292,296,295,69,297,65,296,298,69,73,299,70,298,300,73,76,301,78,300,302,76,80,303,293,290,302,294,301,303,300,298,296,297,299,301,304,302,290,291,303,305,82,302,304,80,84,305,199,306,307,308,309,200,198,304,306,309,305,84,310,201,307,308,203,89,310,311,283,312,313,89,314,315,316,317,318,314,319,316,320,321,317,319,320,322,323,321,324,323,322,287,286,325,323,286,304,287,322,325,288,305,282,326,327,284,281,328,329,330,315,318,331,329,332,333,334,335,336,332,334,337,338,335,339,338,337,330,329,340,338,329,279,341,342,343,278,344,341,345,346,347,344,348,345,349,350,351,348,352,349,353,354,355,352,356,357,358,354,356,359,360,337,354,358,340,331,359,334,350,354,335,340,356,333,346,350,336,335,352,361,342,346,362,336,348,275,277,342,344,278,276,363,361,333,336,362,363,271,273,275,364,272,276,275,361,363,276,272,363,270,269,363,363,272,270,279,280,327,328,281,343,365,345,341,366,328,347,367,349,345,368,366,351,357,353,349,355,369,360,322,320,370,371,321,325,326,372,370,371,373,374,283,372,326,312,284,374,307,306,372,308,312,373,306,322,372,373,325,309,283,311,307,308,313,312,357,375,376,377,378,360,330,358,376,377,359,331,379,370,376,377,371,380,320,316,376,377,317,321,315,376,316,317,377,318,381,382,383,384,385,386,387,388,389,390,386,391,389,388,392,393,394,391,395,392,396,397,393,398,399,396,400,401,397,402,400,403,404,401,405,406,407,408,403,409,401,410,411,407,400,412,397,401,392,413,411,412,414,393,388,415,413,414,416,394,387,417,415,416,418,390,383,419,417,384,390,418,326,379,420,421,380,374,379,404,403,410,406,380,326,422,365,374,328,366,423,383,382,424,368,385,408,425,420,426,410,421,427,428,420,421,429,430,428,427,431,429,432,433,434,435,428,429,436,437,423,435,434,437,436,424,383,423,438,439,424,384,435,423,367,436,366,368,365,422,428,429,440,366,422,420,428,429,421,440,438,441,442,439,443,444,438,434,445,446,437,439,447,448,445,432,437,446,447,431,449,450,433,432,431,427,451,452,430,433,425,453,451,454,430,452,408,455,453,426,454,456,419,442,457,443,418,458,417,457,459,418,416,460,415,459,461,416,414,462,411,413,461,462,414,412,407,411,463,464,412,409,408,407,465,466,409,426,449,451,467,468,452,450,469,467,470,471,468,472,470,473,474,471,475,476,474,473,477,478,479,476,442,474,480,444,458,481,441,482,474,476,475,483,441,445,469,472,446,483,469,445,448,472,450,484,453,455,467,468,485,456,470,467,455,471,466,485,463,473,470,471,479,464,461,477,473,479,478,462,480,477,461,481,460,462,457,480,459,460,481,458,404,486,487,406,405,488,489,487,490,405,402,491,395,399,490,491,402,398,389,395,492,493,398,391,381,389,494,495,391,386,382,381,496,497,386,385,496,487,486,498,488,497,494,490,487,495,497,488,494,492,490,491,493,495,357,367,382,385,368,360,499,486,375,500,360,378,375,486,404,378,380,406,46,0,2,8,3,5,2,1,7,13,8,9,1,10,6,21,12,13,0,14,1,12,15,8,14,16,10,20,18,12,10,17,11,501,20,21,19,17,23,501,24,20,16,26,17,25,27,20,26,28,22,33,30,25,23,22,31,24,32,25,31,29,35,32,36,33,29,28,34,33,37,30,34,38,41,37,42,39,35,34,44,36,45,37,44,41,7,45,9,42,41,40,2,42,5,43,60,46,47,63,48,4,47,40,49,48,50,43,49,38,51,50,52,39,51,28,53,52,54,30,26,16,53,57,18,54,16,14,55,59,15,57,14,0,56,61,3,59,0,46,58,63,4,61,295,65,67,295,67,69,65,70,66,69,68,73,78,74,70,72,75,73,82,77,78,75,79,76,198,81,82,79,83,80,310,85,87,142,88,90,86,85,92,142,93,88,91,95,92,137,97,93,96,95,99,137,100,97,99,98,103,100,104,101,103,102,107,104,108,105,106,110,107,130,112,108,111,110,114,130,115,112,114,113,118,115,119,116,118,117,122,119,122,120,118,123,114,119,115,126,124,127,114,130,128,115,127,129,111,128,130,131,129,132,107,131,108,133,132,134,103,133,104,135,134,136,99,135,100,138,136,139,96,138,137,140,139,141,92,140,93,143,141,144,86,143,142,145,144,146,87,147,148,90,225,123,122,151,122,126,225,122,150,149,122,152,149,147,150,149,152,147,155,153,66,67,153,68,158,155,71,68,154,72,74,157,71,75,72,159,81,160,77,163,162,79,157,74,161,79,75,163,160,164,166,162,166,167,502,161,166,502,166,163,502,168,161,502,163,168,174,169,164,182,171,167,194,173,174,171,175,172,194,177,173,176,175,177,177,180,178,177,179,180,183,165,170,183,182,165,193,183,184,193,185,183,181,186,178,189,186,179,178,187,173,192,189,175,169,173,190,171,191,175,169,190,170,185,191,182,187,186,188,189,192,186,186,193,190,185,193,191,177,194,147,90,176,147,194,174,87,202,172,90,195,174,196,202,197,172,196,164,81,197,83,167,81,198,196,83,197,84,196,199,195,197,202,200,310,87,201,202,90,203,205,157,204,215,204,159,158,157,206,215,159,207,155,158,208,207,156,209,153,155,210,209,154,210,218,210,211,218,212,210,208,206,211,216,207,212,206,205,213,219,215,216,214,205,217,219,217,215,217,218,214,212,218,219,150,146,221,263,148,222,225,150,223,222,152,224,242,123,223,246,224,126,220,146,226,263,227,148,144,141,226,230,143,227,141,139,228,232,140,230,139,136,229,234,138,232,136,134,231,254,135,234,233,134,235,254,236,135,235,132,237,236,238,133,129,127,237,241,128,238,127,124,239,243,125,241,124,123,240,246,126,243,247,240,244,503,245,243,239,240,248,503,243,249,250,237,248,251,249,238,252,235,250,504,251,236,233,235,253,504,236,255,256,231,253,505,255,234,229,231,257,505,234,258,259,228,257,260,258,230,261,226,259,506,260,227,220,226,262,506,227,264,242,223,244,267,224,245,223,221,265,268,222,267,221,220,266,264,263,268,121,117,270,272,120,270,117,113,269,364,116,272,271,113,273,364,274,116,273,110,275,274,276,112,275,106,277,276,278,109,102,98,277,343,101,278,279,98,280,343,281,101,95,91,280,284,94,281,91,85,282,312,88,284,290,285,287,291,288,285,293,289,290,294,291,289,296,292,293,297,294,292,65,295,296,292,295,297,70,65,298,297,69,299,78,70,300,299,73,301,82,78,302,301,76,303,300,293,302,291,294,303,293,300,296,294,297,301,287,304,290,288,291,305,198,82,304,303,80,305,201,199,307,203,308,200,199,198,306,200,309,84,311,310,307,313,308,89,85,310,283,88,312,89,319,314,316,319,317,314,324,319,320,324,321,319,324,320,323,325,321,323,323,322,286,288,325,286,306,304,322,309,325,305,280,282,327,374,284,328,314,329,315,314,318,329,339,332,334,339,335,332,339,334,338,340,335,338,338,337,329,331,340,329,277,279,342,347,343,344,342,341,346,351,347,348,346,345,350,355,351,352,350,349,354,369,355,356,353,357,354,369,356,360,330,337,358,356,340,359,337,334,354,352,335,356,334,333,350,348,336,352,333,361,346,344,362,348,361,275,342,362,344,276,332,363,333,332,336,363,269,271,275,274,364,276,269,275,363,362,276,363,341,279,327,347,328,343,327,365,341,351,366,347,365,367,345,355,368,351,367,357,349,368,355,360,372,322,370,373,371,325,379,326,370,380,371,374,282,283,326,373,312,374,283,307,372,309,308,373,358,357,376,359,377,360,315,330,376,318,377,331,375,379,376,378,377,380,370,320,376,371,377,321,387,381,383,390,384,386,381,387,389,394,390,391,395,389,392,398,393,391,399,395,396,402,397,398,489,399,400,405,401,402,489,400,404,410,401,406,400,407,403,426,409,410,396,411,400,409,412,401,396,392,411,397,412,393,392,388,413,393,414,394,388,387,415,394,416,390,387,383,417,443,384,418,422,326,420,440,421,374,420,379,403,421,410,380,327,326,365,440,374,366,367,423,382,384,424,385,403,408,420,454,426,421,425,427,420,454,421,430,447,428,431,430,429,433,447,434,428,432,429,437,438,423,434,439,437,424,419,383,438,443,439,384,365,435,367,424,436,368,435,365,428,436,429,366,419,438,442,483,439,444,441,438,445,483,446,439,434,447,445,484,432,446,448,447,449,484,450,432,449,431,451,450,452,433,427,425,451,456,454,452,425,408,453,485,426,456,417,419,457,444,443,458,415,417,459,458,418,460,413,415,461,460,416,462,463,411,461,464,462,412,465,407,463,466,464,409,455,408,465,485,466,426,469,449,467,472,468,450,482,469,470,475,471,472,482,470,474,479,471,476,480,474,477,481,478,476,457,442,480,476,444,481,442,441,474,444,476,483,482,441,469,475,472,483,449,469,448,446,472,484,451,453,467,452,468,456,465,470,455,468,471,485,465,463,470,466,471,464,463,461,473,464,479,462,459,480,461,478,481,462,489,404,487,498,406,488,399,489,490,488,405,491,492,395,490,493,491,398,494,389,492,495,493,391,496,381,494,497,495,386,499,382,496,500,497,385,499,496,486,500,498,497,496,494,487,491,495,488,499,357,382,500,385,360,357,499,375,498,500,378,379,375,404,498,378,406],\"subMeshes\":[{\"materialIndex\":0,\"verticesStart\":0,\"verticesCount\":507,\"indexStart\":0,\"indexCount\":2904}]}],\"multiMaterials\":[]}"))
    renderer.meshes = meshes;

    window.requestAnimationFrame(mainLoop);
}

function mainLoop() {
	device.clear();

    var mainCamera = renderer.cameras[0];

    for (var i = 0; i < renderer.meshes.length; i++) {
        var mesh = renderer.meshes[i];
        mesh.rotation.x += 0.01;
        mesh.rotation.y += 0.01;
        mesh.rotation.z += 0.01;
    }

    renderer.render(mainCamera);

    device.present();

    window.requestAnimationFrame(mainLoop);
}
